package com.wakaca.design.pattern.behavioral.chainofresponsibility;

/**
 * 批准者
 * 这个类里面包含了一个自己同样类型的一个对象
 * Created by wakac on 2019/4/4
 */
public abstract class Approver {
    protected Approver approver;

    public void setNextApprover(Approver approver) {
        this.approver = approver;
    }

    // 发布课程
    public abstract void deploy(Course course);
}
